﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CloudStorage_Backend.exception
{
    public class FileException : Exception
    {
        public FileExceptionMsg fileExceptionMsg;
        public FileException(FileExceptionMsg msg) : base(msg.ToString()) {
            fileExceptionMsg = msg;
        }
    }

    public enum FileExceptionMsg {
        FILE_NOT_FOUND,
        DIRECTORY_NOT_FOUND,
        FILE_HAS_EXIST,
        FILE_TOO_LARGE,
        WRONG_PATH_FORMAT,
        INVALID_DIRECTORY_NAME
    }
}
